﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Register.Domain
{
    /// <summary>
    /// 屠宰信息表
    /// </summary>
    [Table("Slaughters")]
    public class Slaughters
    {
        /// <summary>
        /// 屠宰信息编号
        /// </summary>
        [Key]
        public int SlaughterId {  get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        [StringLength(100)]
        public string Batch { get; set; } = string.Empty;
        /// <summary>
        /// 到厂均重（公斤）
        /// </summary>
        public int WeightToFactory {  get; set; }
        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime ArrivalTime { get; set; }
        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime SlaughterTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted {  get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        public int TraceabilityId {  get; set; }
    }
}
